package io.geekidea.boot.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.test.entity.CarPort;
import io.geekidea.boot.test.query.CarPortQuery;
import io.geekidea.boot.test.vo.CarPortVo;
import io.geekidea.boot.test.query.AppCarPortQuery;
import io.geekidea.boot.test.vo.AppCarPortVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 车库 Mapper 接口
 *
 * @author geekidea
 * @since 2025-03-25
 */
@Mapper
public interface CarPortMapper extends BaseMapper<CarPort> {

    /**
     * 车库详情
     *
     * @param id
     * @return
     */
    CarPortVo getCarPortById(Long id);

    /**
     * 车库分页列表
     *
     * @param query
     * @return
     */
    List<CarPortVo> getCarPortPage(CarPortQuery query);

    /**
     * App车库详情
     *
     * @param id
     * @return
     */
    AppCarPortVo getAppCarPortById(Long id);

    /**
     * App车库分页列表
     *
     * @param query
     * @return
     */
    List<AppCarPortVo> getAppCarPortPage(AppCarPortQuery query);

}
